﻿namespace SmartPlant.Model
{

    public enum GroupMode
    {
        mode0 = 0,
        mode1 = 1,
        mode2 = 2,
    }
    public enum TreeNodeType
    {
        Plant,
        Area,
        Unit,
        Loop,
        Instrument,
        InstrumentDoc_spec,
        InstrumentDoc_pd,
        LoopFolder,
        InstrumentFolder,
        HookUpFolder,
        HookUpType,
        HookUp,
        PIDFolder,
        PID,
        LineFolder,
        Line,
        EquipFolder,
        Equip,
        NoDeviceCableFolder,
        DeviceCableFolder,
        CableFolder,
        Cable,
        PanelFolder,
        Panel_JBFolder,
        Panel_DPFolder,
        Panel_MRFolder,
        Panel_DCSFolder,
        Panel_DCS,
        Blank
    }

    public enum panel_category_id
    {
        jb=1,
        mr = 2,
        dp=4,
        dcs = 5
    }
    public enum panel_category_seq
    {

    }
    public enum panel_sub_category
    {
        jb=110,
        mr = 210,
        dp=410,
        dcs = 510
    }
    #region 必要的一个自定义enum
    /// <summary>
    /// 模板的类型（导出 导入都会用到）
    /// </summary>
    public enum TemplateType
    {
        /// <summary>
        /// 内置的
        /// </summary>
        OOTB = -1,
        /// <summary>
        /// 规格书
        /// </summary>
        SPEC = 0,
        /// <summary>
        /// 索引表
        /// </summary>
        INDEX = 1,
        /// <summary>
        /// 材料表
        /// </summary>
        BOM = 2,
        /// <summary>
        /// DWG
        /// </summary>
        HOOKUP = 3,
        /// <summary>
        /// 接线相关
        /// </summary>
        WIRING = 4
    }
    public enum SchemaLevel
    {
        admin = 0,
        domain = 1
    }
    public enum ProcFunc
    {
        general = 0,
        flow = 1,
        level = 2,
        press = 3,
        temperature = 4,
        analyzer = 5,
        controlvalve = 6,
        reliefvalve = 7
    }
    public enum ReadOnlyMask
    {
        enable = 0,
        enableEDEOnly = 3,
        disable = 9,

    }
    public enum DrawingType
    {
        ddp = 242,
        pd = 6,
        spec = 5,
        pid = 1,
        loopDrawing = 2
    }
    public enum ObjectDefId
    {
        equipment = 7,
        component = 8,
        line = 9,
        softTag = 19,
        ddp = 41,
        /// <summary>
        /// pd sheet工艺参数表
        /// </summary>
        pd = 22,
        spec = 21,
        HARTInstrument = 58,
        /// <summary>
        /// pd gen id，随pd general表一起生成的
        /// </summary>
        pd102 = 102,
        loop = 10,
    }

    public enum DialogPurpose
    {
        Update,
        Create,
        Copy,
        Delete,
        None
    }
    #endregion
}
